package org.springframework.fusion.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.fusion.service.ConsumersService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConsumersController {

	@Autowired
	private ConsumersService consumersService;

	@GetMapping(value = "saveConsumers", name = "保存数据")
	public Object saveConsumers() {
		Object saveConsumers = consumersService.saveConsumers();
		return saveConsumers;
	}

	@GetMapping(value = "page", name = "测试分页")
	public Object page() {
		Object saveConsumers = consumersService.page();
		return saveConsumers;
	}
}
